package com.mathset.bean;

import org.apache.catalina.core.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("com/mathset/bean/applicationContext.xml");
		
		A a = (A)context.getBean("a");
		System.out.println(a.getName());
		
	}

}
